home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / BARNET / COMPILER / SATHER / !Sather / Library / Base / Base.sam next >
Text File  |  1997-03-08  |  3KB  |  82 lines

  1. -- Copyright (C) International Computer Science Institute, 1994.  COPYRIGHT  --
  2. -- NOTICE: This code is provided "AS IS" WITHOUT ANY WARRANTY and is subject --
  3. -- to the terms of the SATHER LIBRARY GENERAL PUBLIC LICENSE contained in    --
  4. -- the file "Doc/License" of the Sather distribution.  The license is also   --
  5. -- available from ICSI, 1947 Center St., Suite 600, Berkeley CA 94704, USA.  --
  6. --------> Please email comments to "sather-bugs@icsi.berkeley.edu". <----------
  7.  
  8. (* BASE CLASSES
  9.  
  10. The base classes are the primitives out of which all Sather
  11. classes may be built.  Most are given special treatment by
  12. the compiler.
  13.  
  14. Some examples of literals for built-in Sather types:
  15.  
  16.     ARRAY - | a, b, c |
  17.     BOOL  - true
  18.     CHAR  - 'a'
  19.     FLT   - 1.0
  20.     FLTD  - 1.0d
  21.     INT   - 56
  22.     STR   - "abc"
  23.  
  24. AREF provides an array portion to classes which include it.
  25. If you want more functionality such as sorting, the ARRAY class
  26. (in Containers) is what you want.  AVAL is the equivalent of
  27. AREF for value classes.
  28.  
  29. EXT_OB is used to carry values foreign to Sather, such as C pointers.
  30.  
  31. The 1.0 language spec defines FLT, FLTD, FLTX and FLTDX which
  32. correspond the IEEE single, double, extended and double extended
  33. respectively.  The current compiler only implements FLT and FLTD
  34. however.  FLTI is an infinite precision floating point class; it
  35. isn't implemented either.  However, take a look at RAT in Math.
  36.  
  37. Both signed and unsigned operations are provided on Sather INT;
  38. there are not special types for these.
  39.  
  40. A complete description of the built-in Sather types can be found
  41. in the language specification, which is in the Doc directory of
  42. the Sather installation.
  43.  
  44. *)
  45.  
  46.  
  47.  
  48.  
  49.  
  50. -- This is a list of library files that can automatically
  51. -- be loaded by a reference in users' SATHER_COMMANDS env variable
  52.  
  53.     abstract.sa -has abstract.sa 
  54.     $IS_EQ $IS_LT $HASH $NIL $COPY $STR $ELT 
  55.     COMPARABLE COMPARE
  56.     aref.sa -has aref.sa AREF 
  57.     aval.sa -has aval.sa AVAL
  58.     bool.sa -has bool.sa BOOL 
  59.     char.sa -has char.sa CHAR 
  60.     flt.sa -has flt.sa FLT C_FLT
  61.     fltd.sa -has fltd.sa FLTD C_FLTD 
  62.     
  63.     succ_strm.sa -has succ_strm.sa $SUCC_STREAM INT_STREAM 
  64.  
  65.     int.sa -has int.sa INT 
  66.     misc.sa -has misc.sa $OB EXT_OB CAST CAST_EXC
  67.  
  68.     number.sa -has number.sa $NFE $NUMBER $REAL_NUMBER $CPX_NUMBER
  69.  
  70.     test/char.sa -has test/char.sa TEST_CHAR
  71.     test/bool.sa -has test/bool.sa TEST_BOOL
  72.     test/fltd.sa -has test/fltd.sa TEST_FLTD_OUTPUT
  73.     test/int.sa -has test/int.sa TEST_INT
  74.     test/aref.sa -has test/aref.sa TEST_AREF
  75.     test/math.sa -has test/math.sa TEST_MATH TEST_FLT TEST_FLTD
  76.  
  77.     -- Dummy versions of non-existant FLT classes
  78.     flt_dummy.sa -has flt_dummy.sa  FLTX FLTDX FLTI
  79.  
  80.    -- Non existant junk (for now). Unimplememented part of spec.
  81.    --    flt_other.sa -has flt_other.sa FLT_UNDEF FLTX FLTDX FLTI
  82.